package zhongbo.java.air.flightpath.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import zhongbo.java.air.flightpath.entity.AirFlightPath;


public interface AirFlightPathMapper extends BaseMapper<AirFlightPath> {
    AirFlightPath selectAllAirFlightPath(AirFlightPath airFlightPath);

    @Delete("delete from air_flight_path where icao_code = #{icaoCode}")
    Integer deleteByIcaoCode(String icaoCode);

    Integer updateAirFlightPath(@Param("UpdatePath") AirFlightPath UpdatePath, @Param("icaoCode") String icaoCode);

    @Select("select * from air_flight_path where icao_code = #{icaoCode}")
    AirFlightPath selectByIcaoCode(String icaoCode);
}
